Yacon.component.TMultiGridNav = function(conText){
	
	Yacon.apply(this,conText);
	
	if(!Yacon.isEmpty(this.view)){
		this.name = this.view.name;
		this.ico = this.view.ico;
		this.menu = new Yacon.widget.TMenu(this.view.menu);
	}
	
};

Yacon.component.TMultiGridNav.prototype = {
	
	/* 获取HTML信息 */	
	getHtml: function(){
		
		var html = "";
		
		html += "<div class='panel-heading bk-bg-primary row-ht-fix'>";
		
		html += this.getTitleHtml();
		
		html += '</div>';
		
		return html;
		
	},
	
	/* 获取标题HTML信息 */
	getTitleHtml: function(){
		
		var html = "";
		
		html += "<h5><span class='"+this.ico+"'></span><span class='break'>&nbsp;&nbsp;</span>"+this.name+"</h5>";
		
		if(Yacon.isEmpty(this.parent.view.topbtn)){
			html += this.menu.getTopHtml();
		}else if(this.parent.view.topbtn == "ico"){
			html += this.menu.getTopHtml();
		}else if(this.parent.view.topbtn == "all"){
			html += this.menu.getBottomHtml();
		}else {
			html += this.menu.getTopHtml();
		}
		
		return html;
		
	}	
		
};